<?php
defined( '_JEXEC' ) or die( 'Restricted index access' );
define( 'TEMPLATEPATH', dirname(__FILE__) );
/*
-----------------------------------------
Sportopolis - June 2009 Shape 5 Club Template
-----------------------------------------
Site:      www.shape5.com
Email:     contact@shape5.com
@license:  Copyrighted Commercial Software
@copyright (C) 2009 Shape 5

*/

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" >
<head>
<jdoc:include type="head" />

<?php

//
///////////////////////////////////////////////////////////////////////////////////////


		$s5_style = $this->params->get ("xml_s5_style");	
		
		$s5_bg = $this->params->get ("xml_s5_bg");

		$s5_body_width = $this->params->get ("xml_s5_body_width");

		$s5_left_width = $this->params->get ("xml_s5_left_width");
		
		$s5_right_width = $this->params->get ("xml_s5_right_width");
		
		$s5_inset_width = $this->params->get ("xml_s5_inset_width");
		
		$s5_top_pos_width = $this->params->get ("xml_s5_top_pos_width");
		
		$s5_menu = $this->params->get ("xml_s5_menu");    
		
		$s5_date = $this->params->get ("xml_s5_date");  

		$s5_lytebox = $this->params->get ("xml_s5_lytebox");  

		$s5_tooltips = $this->params->get ("xml_s5_tooltips");  
		
		$s5_show_frontpage = $this->params->get ("xml_s5_frontpage");  
		


// It is recommended that you do not edit below this line.
///////////////////////////////////////////////////////////////////////////////////////


if (($s5_menu  == "1") || ($s5_menu  == "2") || ($s5_menu  == "3")){ 
require( TEMPLATEPATH.DS."s5_no_moo_menu.php");
}
else if ($s5_menu  == "4")  {
require( TEMPLATEPATH.DS."s5_suckerfish.php");
}
$menu_name = $this->params->get ("xml_menuname");
$LiveSiteUrl = JURI::base();

$br = strtolower($_SERVER['HTTP_USER_AGENT']); // what browser.

$browser = "other";

if(ereg("msie 6", $br)) {
$browser = "ie6";
} 

else if(ereg("msie 7", $br)) {
$browser = "ie7";
} 

else if(ereg("msie 8", $br)) {
$browser = "ie8";
} 

// Module size calculations

if(!$this->countModules('left')) {
$s5_left_width = "0";	
}

if(!$this->countModules('right')) {
$s5_right_width = "0";	
}

if(!$this->countModules('inset')) {
$s5_inset_width = "0";	
}

if(!$this->countModules('top_2') && !$this->countModules('top_3')) {
$s5_top_pos_width = "0";	
}

if ($this->countModules("bottom_row_one_1") && $this->countModules("bottom_row_one_2") && $this->countModules("bottom_row_one_3") && $this->countModules("bottom_row_one_4")) { $bot_row_one="24.9%"; }
else if (!$this->countModules("bottom_row_one_1") && $this->countModules("bottom_row_one_2") && $this->countModules("bottom_row_one_3") && $this->countModules("bottom_row_one_4")) { $bot_row_one="33.3%"; }
else if ($this->countModules("bottom_row_one_1") && !$this->countModules("bottom_row_one_2") && $this->countModules("bottom_row_one_3") && $this->countModules("bottom_row_one_4")) { $bot_row_one="33.3%"; }
else if ($this->countModules("bottom_row_one_1") && $this->countModules("bottom_row_one_2") && !$this->countModules("bottom_row_one_3") && $this->countModules("bottom_row_one_4")) { $bot_row_one="33.3%"; }
else if ($this->countModules("bottom_row_one_1") && $this->countModules("bottom_row_one_2") && $this->countModules("bottom_row_one_3") && !$this->countModules("bottom_row_one_4")) { $bot_row_one="33.3%"; }
else if (!$this->countModules("bottom_row_one_1") && !$this->countModules("bottom_row_one_2") && $this->countModules("bottom_row_one_3") && $this->countModules("bottom_row_one_4")) { $bot_row_one="49.9%"; }
else if (!$this->countModules("bottom_row_one_1") && $this->countModules("bottom_row_one_2") && !$this->countModules("bottom_row_one_3") && $this->countModules("bottom_row_one_4")) { $bot_row_one="49.9%"; }
else if (!$this->countModules("bottom_row_one_1") && $this->countModules("bottom_row_one_2") && $this->countModules("bottom_row_one_3") && !$this->countModules("bottom_row_one_4")) { $bot_row_one="49.9%"; }
else if ($this->countModules("bottom_row_one_1") && !$this->countModules("bottom_row_one_2") && !$this->countModules("bottom_row_one_3") && $this->countModules("bottom_row_one_4")) { $bot_row_one="49.9%"; }
else if ($this->countModules("bottom_row_one_1") && !$this->countModules("bottom_row_one_2") && $this->countModules("bottom_row_one_3") && !$this->countModules("bottom_row_one_4")) { $bot_row_one="49.9%"; }
else if ($this->countModules("bottom_row_one_1") && $this->countModules("bottom_row_one_2") && !$this->countModules("bottom_row_one_3") && !$this->countModules("bottom_row_one_4")) { $bot_row_one="49.9%"; }
else if (!$this->countModules("bottom_row_one_1") && !$this->countModules("bottom_row_one_2") && !$this->countModules("bottom_row_one_3") && $this->countModules("bottom_row_one_4")) { $bot_row_one="100%"; }
else if (!$this->countModules("bottom_row_one_1") && $this->countModules("bottom_row_one_2") && !$this->countModules("bottom_row_one_3") && !$this->countModules("bottom_row_one_4")) { $bot_row_one="100%"; }
else if (!$this->countModules("bottom_row_one_1") && !$this->countModules("bottom_row_one_2") && $this->countModules("bottom_row_one_3") && !$this->countModules("bottom_row_one_4")) { $bot_row_one="100%"; }
else if ($this->countModules("bottom_row_one_1") && !$this->countModules("bottom_row_one_2") && !$this->countModules("bottom_row_one_3") && !$this->countModules("bottom_row_one_4")) { $bot_row_one="100%"; }


if ($this->countModules("bottom_row_two_1") && $this->countModules("bottom_row_two_2") && $this->countModules("bottom_row_two_3") && $this->countModules("bottom_row_two_4")) { $bot_row_two="24.9%"; }
else if (!$this->countModules("bottom_row_two_1") && $this->countModules("bottom_row_two_2") && $this->countModules("bottom_row_two_3") && $this->countModules("bottom_row_two_4")) { $bot_row_two="33.3%"; }
else if ($this->countModules("bottom_row_two_1") && !$this->countModules("bottom_row_two_2") && $this->countModules("bottom_row_two_3") && $this->countModules("bottom_row_two_4")) { $bot_row_two="33.3%"; }
else if ($this->countModules("bottom_row_two_1") && $this->countModules("bottom_row_two_2") && !$this->countModules("bottom_row_two_3") && $this->countModules("bottom_row_two_4")) { $bot_row_two="33.3%"; }
else if ($this->countModules("bottom_row_two_1") && $this->countModules("bottom_row_two_2") && $this->countModules("bottom_row_two_3") && !$this->countModules("bottom_row_two_4")) { $bot_row_two="33.3%"; }
else if (!$this->countModules("bottom_row_two_1") && !$this->countModules("bottom_row_two_2") && $this->countModules("bottom_row_two_3") && $this->countModules("bottom_row_two_4")) { $bot_row_two="49.9%"; }
else if (!$this->countModules("bottom_row_two_1") && $this->countModules("bottom_row_two_2") && !$this->countModules("bottom_row_two_3") && $this->countModules("bottom_row_two_4")) { $bot_row_two="49.9%"; }
else if (!$this->countModules("bottom_row_two_1") && $this->countModules("bottom_row_two_2") && $this->countModules("bottom_row_two_3") && !$this->countModules("bottom_row_two_4")) { $bot_row_two="49.9%"; }
else if ($this->countModules("bottom_row_two_1") && !$this->countModules("bottom_row_two_2") && !$this->countModules("bottom_row_two_3") && $this->countModules("bottom_row_two_4")) { $bot_row_two="49.9%"; }
else if ($this->countModules("bottom_row_two_1") && !$this->countModules("bottom_row_two_2") && $this->countModules("bottom_row_two_3") && !$this->countModules("bottom_row_two_4")) { $bot_row_two="49.9%"; }
else if ($this->countModules("bottom_row_two_1") && $this->countModules("bottom_row_two_2") && !$this->countModules("bottom_row_two_3") && !$this->countModules("bottom_row_two_4")) { $bot_row_two="49.9%"; }
else if (!$this->countModules("bottom_row_two_1") && !$this->countModules("bottom_row_two_2") && !$this->countModules("bottom_row_two_3") && $this->countModules("bottom_row_two_4")) { $bot_row_two="100%"; }
else if (!$this->countModules("bottom_row_two_1") && $this->countModules("bottom_row_two_2") && !$this->countModules("bottom_row_two_3") && !$this->countModules("bottom_row_two_4")) { $bot_row_two="100%"; }
else if (!$this->countModules("bottom_row_two_1") && !$this->countModules("bottom_row_two_2") && $this->countModules("bottom_row_two_3") && !$this->countModules("bottom_row_two_4")) { $bot_row_two="100%"; }
else if ($this->countModules("bottom_row_two_1") && !$this->countModules("bottom_row_two_2") && !$this->countModules("bottom_row_two_3") && !$this->countModules("bottom_row_two_4")) { $bot_row_two="100%"; }



?>

<meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" />
<meta http-equiv="Content-Style-Type" content="text/css" />

<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/general.css" type="text/css" />

<link href="<?php echo $this->baseurl ?>/templates/sportopolis/css/template_css.css" rel="stylesheet" type="text/css" media="screen" />

<link href="<?php echo $this->baseurl ?>/templates/sportopolis/css/s5_suckerfish.css" rel="stylesheet" type="text/css" media="screen" />

<link href="<?php echo $this->baseurl ?>/templates/sportopolis/css/editor.css" rel="stylesheet" type="text/css" media="screen" />

<link href="<?php echo $this->baseurl ?>/templates/sportopolis/css/<?php echo $s5_style ?>.css" rel="stylesheet" type="text/css" media="screen" />

<link href="/sportopolis/templates/sportopolis/favicon.ico" rel="shortcut icon" type="image/x-icon" />



<?php 
  $s5_domain = $_SERVER['HTTP_HOST']; $s5_path = $_SERVER['SCRIPT_NAME']; $s5_queryString = $_SERVER['QUERY_STRING']; $s5_url = "http://" . $s5_domain . $_SERVER['REQUEST_URI']; $s5_check_vm = strrpos($s5_url,"virtuemart");
  if ($s5_lytebox  == "yes") { 
  if ($s5_check_vm == "") {
?>
		<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/sportopolis/css/lytebox.css" type="text/css" media="screen" />
		<script type="text/javascript" language="javascript" src="<?php echo $this->baseurl ?>/templates/sportopolis/js/lytebox.js"></script>
<?php } } ?>


<?php if($browser == "ie6" || $browser == "ie7" && $s5_menu != "5") { ?>

<script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/sportopolis/js/IEsuckerfish.js"></script>

<?php } ?>

<style type="text/css"> 

<?php if ($browser == "ie6") { ?>

* html #s5_logo_banner_wrap {
	background:none;
	filter:progid:dximagetransform.microsoft.alphaimageloader(src='<?php echo $this->baseurl ?>/templates/sportopolis/images/s5_logo.png', sizingmethod='crop');}
}

<?php } ?>

<?php if ($browser == "ie6" || $browser == "ie7") { ?>

.module_round_box div div {
padding-bottom:1px;
}

.button {
padding-left:2px;
padding-right:2px;
}
table.contentpaneopen {
margin-bottom:3px;
}
#s5_bot_row_wrap_inner1 .module_round_box {
margin-bottom:0px;
}

<?php } ?>

body {
background-color:#<?php echo $s5_bg ?>;
}

<?php if(!$this->countModules('bottom_row_two_1') && !$this->countModules('bottom_row_two_2') && !$this->countModules('bottom_row_two_3') && !$this->countModules('bottom_row_two_4')) { ?>

#s5_bot_row_wrap_inner1 {
display:none;
}

#s5_bot_row_wrap {
height:12px;
}

<?php } ?>

</style> 

</head>

<body id="s5_body">

	<?php if ($s5_date == "yes" || $s5_menu != "5") { ?>
	
		<div id="s5_top_bar">
		
			<div id="s5_top_wrap" style="width:<?php echo $s5_body_width ?>px">
		
				<?php if ($s5_date == "yes") { ?>
				
					<div id="s5_date">
			
						<?php $today = date("l, F j, Y"); PRINT "$today";?>
					
					</div>
					
				<?php } ?>
				
					<?php if ($s5_menu  != "5") { ?>
				
						<div id="s5_navv">
									
							<?php mosShowListMenu($menu_name);	?>
							<?php if ($s5_menu  == "1") { ?>
								<script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/sportopolis/js/s5_drop_in_no_moo_menu.js"></script>																		
							<?php } ?>
							<?php if ($s5_menu  == "2") { ?>
								<script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/sportopolis/js/s5_fading_no_moo_menu.js"></script>																		
							<?php } ?>	
							<?php if ($s5_menu  == "3") { ?>
								<script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/sportopolis/js/s5_scroll_down_no_moo_menu.js"></script>																		
							<?php } ?>	
							<?php if ($s5_menu  == "4") { ?>
								<script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/sportopolis/js/s5_suckerfish.js"></script>																		
							<?php } ?>	
									
						</div>
						
					<?php } ?>
				
			</div>
		
		</div>
	
	<?php } ?>
	
	<div id="s5_outer">
	
		<div id="s5_logo_banner_wrap" style="width:<?php echo $s5_body_width ?>px">
		
			<?php if($this->countModules('banner')) { ?>
									
				<div id="s5_banner">
					
					<jdoc:include type="modules" name="banner" style="notitle" />
										
				</div>
										
			<?php } ?>
		
		</div>
		
		<?php if($this->countModules('top_1') || $this->countModules('top_2') || $this->countModules('top_3')) { ?>
		
			<div id="s5_top_modules" style="width:<?php echo $s5_body_width ?>px">
			<div id="s5_top_modules_inner">
			
				<?php if($this->countModules('top_1')) { ?>
			
					<div id="s5_top_1" style="width:<?php echo $s5_body_width - $s5_top_pos_width - 20 ?>px">
					
						<jdoc:include type="modules" name="top_1" style="xhtml" />
					
					</div>
					
				<?php } ?>
				
				<?php if($this->countModules('top_2') || $this->countModules('top_3')) { ?>
				
					<div style="float:right; width:<?php echo $s5_top_pos_width ?>px">
				
						<?php if($this->countModules('top_2')) { ?>
							
							<div id="s5_top_2" style="width:<?php echo $s5_top_pos_width ?>px">
							
								<jdoc:include type="modules" name="top_2" style="top_2" />
								
							</div>
							
							<div style="clear:both"></div>
							
						<?php } ?>
						
						<?php if($this->countModules('top_3')) { ?>
							
							<div id="s5_top_3" style="width:<?php echo $s5_top_pos_width ?>px">
							
								<jdoc:include type="modules" name="top_3" style="xhtml" />
							
							</div>
							
						<?php } ?>
						
					</div>
						
				<?php } ?>
				
				<div style="clear:both"></div>
		
			</div>
			</div>
			
		<?php } ?>
		
		<?php if($this->countModules('breadcrumb') || $this->countModules('login') || $this->countModules('search')) { ?>
		
			<div id="s5_main_bar_wrap" style="width:<?php echo $s5_body_width + 18 ?>px">
			
				<div id="s5_main_bar">
				
					<?php if($this->countModules('breadcrumb')) { ?>
					
						<div id="s5_pathway">
						
							<jdoc:include type="modules" name="breadcrumb" style="notitle" />
						
						</div>
					
					<?php } ?>
					
					<?php if($this->countModules('login') || $this->countModules('search')) { ?>
					
						<div id="s5_search_login">
							
							<div id="s5_search">
						
								<jdoc:include type="modules" name="search" style="notitle" />
								
							</div>
							
							<div id="s5_login">
						
								<jdoc:include type="modules" name="login" style="notitle" />
								
							</div>
						
						</div>
					
					<?php } ?>
				
				</div>
				
				<div id="s5_bar_l_corner">
				</div>
				
				<?php if($this->countModules('login') || $this->countModules('search')) { ?>
				
				<div id="s5_bar_r_corner_dark">
				</div>
				
				<?php } ?>
				
				<?php if(!$this->countModules('login') && !$this->countModules('search')) { ?>
				
				<div id="s5_bar_r_corner_light">
				</div>
				
				<?php } ?>
				
				<div style="clear:both"></div>
			
			</div>
		
		<?php } ?>
	
		<div id="s5_main_body_wrap"  style="width:<?php echo $s5_body_width - 20 ?>px">
		
			<div id="s5_main_body1">
			<div id="s5_main_body2">
			
				<?php if($this->countModules('left')) { ?>
			
					<div id="s5_left_column" style="width:<?php echo $s5_left_width ?>px">
					
						<div id="s5_left_column_inner">
					
							<jdoc:include type="modules" name="left" style="round_box" />
							
						</div>
					
					</div>
					
				<?php } ?>
					
					<div id="s5_middle_column" style="width:<?php echo $s5_body_width - $s5_left_width - $s5_right_width - 48 ?>px">
					
						<div id="s5_middle_column_inner">
						
									<?php if($this->countModules('above_body_1')) { ?>
									
										<div id="s5_right_above_body">
										
											<jdoc:include type="modules" name="above_body_1" style="round_box" />

										</div>	
										
									<?php } ?>
									
									<?php if($this->countModules('above_body_2')) { ?>
									
										<div id="s5_right_above_body2" style="margin-right:14px; float:left; width:<?php echo ($s5_body_width - $s5_left_width - $s5_right_width - 48)/2 - 7 ?>px">
										
											<div id="s5_right_above_body2_inner">
										
												<jdoc:include type="modules" name="above_body_2" style="round_box" />
												
											</div>

										</div>	
										
									<?php } ?>
									
									<?php if($this->countModules('above_body_3')) { ?>
									
										<div id="s5_right_above_body3" style="float:left; width:<?php echo ($s5_body_width - $s5_left_width - $s5_right_width - 48)/2 - 7 ?>px">
										
											<div id="s5_right_above_body3_inner">
										
												<jdoc:include type="modules" name="above_body_3" style="round_box" />
												
											</div>

										</div>	
										
									<?php } ?>
						
							<?php 
							$s5_frontpage = "yes"; 
							$s5_current_page = ""; 
							if (JRequest::getVar('view') == "frontpage") {
								$s5_current_page = "frontpage";
							}
							if (JRequest::getVar('view') != "frontpage") {
								$s5_current_page = "not_frontpage";
							}
							if ($s5_show_frontpage == "no" && $s5_current_page == "frontpage") {
								$s5_frontpage = "no";
							}
							$s5_check_frontpage = strrpos($s5_url,"index.php");
							if ($s5_check_frontpage > 1) {
								$s5_frontpage = "not_frontpage";
							} ?>
											
							<?php if ($s5_frontpage != "no") { ?>
							
								<?php if($this->countModules('inset')) { ?>
								<div id="s5_body_column" style="width:<?php echo $s5_body_width - $s5_left_width - $s5_right_width - $s5_inset_width - 62 ?>px">
								<?php } ?>
								<?php if(!$this->countModules('inset')) { ?>
								<div id="s5_body_column" style="width:<?php echo $s5_body_width - $s5_left_width - $s5_right_width - $s5_inset_width - 48 ?>px">
								<?php } ?>
								<div id="s5_body_column_inner">
						
									<jdoc:include type="message" />
									<jdoc:include type="component" />
									
								</div>
								</div>
								
								<?php if($this->countModules('inset')) { ?>
									
									<div id="s5_inset_column" style="width:<?php echo $s5_inset_width ?>px">
									<div id="s5_inset_column_inner">
									
										<jdoc:include type="modules" name="inset" style="round_box" />
									
									</div>
									</div>
									
								<?php } ?>
								
							<?php } ?>
							
						</div>
						
					</div>
						
				<?php if($this->countModules('right')) { ?>
					
					<div id="s5_right_column" style="width:<?php echo $s5_right_width ?>px">
					
						<div id="s5_right_column_inner">
					
							<jdoc:include type="modules" name="right" style="round_box" />
							
						</div>
					
					</div>
					
				<?php } ?>
				
				<div style="clear:both"></div>
			
			</div>
			</div>
		
		</div>
		
		<div style="height:15px"></div>
		
		<?php if($this->countModules('bottom_row_one_1') || $this->countModules('bottom_row_one_2') || $this->countModules('bottom_row_one_3') || $this->countModules('bottom_row_one_4')) { ?>
		
			<div id="s5_row_wrap"  style="width:<?php echo $s5_body_width - 20 ?>px">
			
				<div id="s5_row1">
				<div id="s5_row2">	
					
									<?php if($this->countModules('bottom_row_one_1')) { ?>
									<div id="s5_bottom_row_one_1_mod" style="width:<?php echo $bot_row_one ?>">
									<div id="s5_bottom_row_one_1_inner_mod"<?php if($this->countModules('bottom_row_one_2') || $this->countModules('bottom_row_one_3') || $this->countModules('bottom_row_one_4')) { ?> style="padding-right:14px"<?php } ?>>
										<jdoc:include type="modules" name="bottom_row_one_1" style="round_box" />
									</div>
									</div>
									<?php } ?> 
									<?php if($this->countModules('bottom_row_one_2')) { ?>
									<div id="s5_bottom_row_one_2_mod" style="width:<?php echo $bot_row_one ?>">
									<div id="s5_bottom_row_one_2_inner_mod"<?php if($this->countModules('bottom_row_one_3') || $this->countModules('bottom_row_one_4')) { ?> style="padding-right:14px"<?php } ?>>
										<jdoc:include type="modules" name="bottom_row_one_2" style="round_box" />
										<div style="clear:both"></div>
									</div>
									</div>
									<?php } ?> 
									<?php if($this->countModules('bottom_row_one_3')) { ?>
									<div id="s5_bottom_row_one_3_mod" style="width:<?php echo $bot_row_one ?>">
									<div id="s5_bottom_row_one_3_inner_mod"<?php if($this->countModules('bottom_row_one_4')) { ?> style="padding-right:14px"<?php } ?>>
										<jdoc:include type="modules" name="bottom_row_one_3" style="round_box" />
										<div style="clear:both"></div>
									</div>
									</div>
									<?php } ?> 
									<?php if($this->countModules('bottom_row_one_4')) { ?>
									<div id="s5_bottom_row_one_4_mod" style="width:<?php echo $bot_row_one ?>">
									<div id="s5_bottom_row_one_4_inner_mod">
										<jdoc:include type="modules" name="bottom_row_one_4" style="round_box" />
										<div style="clear:both"></div>
									</div>
									</div>
									<?php } ?> 
									
									<div style="clear:both"></div>
					
				</div>
				</div>
			
			</div>
			
			<div style="height:15px"></div>
		
		<?php } ?> 
		
			<div id="s5_bot_row_wrap">
				
				<div id="s5_bot_row_wrap_inner1" style="width:<?php echo $s5_body_width ?>px">
				
					<div id="s5_bot_row_wrap_inner2">
					
									<?php if($this->countModules('bottom_row_two_1')) { ?>
									<div id="s5_bottom_row_two_1_mod" style="width:<?php echo $bot_row_two ?>">
									<div id="s5_bottom_row_two_1_inner_mod"<?php if($this->countModules('bottom_row_two_2') || $this->countModules('bottom_row_two_3') || $this->countModules('bottom_row_two_4')) { ?> style="padding-right:14px"<?php } ?>>
										<jdoc:include type="modules" name="bottom_row_two_1" style="bot_box" />
									</div>
									</div>
									<?php } ?> 
									<?php if($this->countModules('bottom_row_two_2')) { ?>
									<div id="s5_bottom_row_two_2_mod" style="width:<?php echo $bot_row_two ?>">
									<div id="s5_bottom_row_two_2_inner_mod"<?php if($this->countModules('bottom_row_two_3') || $this->countModules('bottom_row_two_4')) { ?> style="padding-right:14px"<?php } ?>>
										<jdoc:include type="modules" name="bottom_row_two_2" style="bot_box" />
										<div style="clear:both"></div>
									</div>
									</div>
									<?php } ?> 
									<?php if($this->countModules('bottom_row_two_3')) { ?>
									<div id="s5_bottom_row_two_3_mod" style="width:<?php echo $bot_row_two ?>">
									<div id="s5_bottom_row_two_3_inner_mod"<?php if($this->countModules('bottom_row_two_4')) { ?> style="padding-right:14px"<?php } ?>>
										<jdoc:include type="modules" name="bottom_row_two_3" style="bot_box" />
										<div style="clear:both"></div>
									</div>
									</div>
									<?php } ?> 
									<?php if($this->countModules('bottom_row_two_4')) { ?>
									<div id="s5_bottom_row_two_4_mod" style="width:<?php echo $bot_row_two ?>">
									<div id="s5_bottom_row_two_4_inner_mod">
										<jdoc:include type="modules" name="bottom_row_two_4" style="bot_box" />
										<div style="clear:both"></div>
									</div>
									</div>
									<?php } ?> 
									
									<div style="clear:both"></div>
									
					</div>
									
				</div>
			
			</div>
		
		<div id="s5_footer">
		
			<div id="s5_footer_inner" style="width:<?php echo $s5_body_width ?>px">
		
				<div id="s5_footer_text">
					<?php include("templates/sportopolis/footer.php"); ?>
				</div>
				<div id="s5_bottom_pos">
					<jdoc:include type="modules" name="bottom_menu" style="notitle" />
				</div>	
				
				<div style="clear:both"></div>
				
			</div>
			
		</div>
	
	<?php if ($s5_tooltips  == "yes") { ?>
	<script type="text/javascript" language="javascript" src="<?php echo $this->baseurl ?>/templates/sportopolis/js/tooltips.js"></script>
	<?php } ?>
	
	<?php if($this->countModules('debug')) { ?>
			<jdoc:include type="modules" name="debug" style="xhtml" />
	<?php } ?>
	
	<?php if ($browser == "ie6" || $browser == "ie7") { ?>
	<script type="text/javascript" language="javascript">
	var s5_search_length = 0;
	var s5_login_length = 0;
	if (document.getElementById("s5_search_login")) {
		if (document.getElementById("s5_search")) {
			s5_search_length = document.getElementById("s5_search").offsetWidth;
		}
		if (document.getElementById("s5_login")) {
			s5_login_length = document.getElementById("s5_login").offsetWidth;
		}
		document.getElementById("s5_search_login").style.width = s5_search_length + s5_login_length + 10 + "px";
	}
	</script>
	<?php } ?>
	
	<div style="clear:both"></div>
	
	</div>

</body>

</html>